package cn.yunhe.mapper;

import cn.yunhe.entity.AirModel;

import java.util.List;
import java.util.Map;

public interface IAireDao {

    /**
     * 查询所有
     *
     * @return
     */
    List<AirModel> findAll();

    /**
     * 添加
     *
     * @param airModel
     * @return
     */
    int addAir(AirModel airModel);


    /**
     * 修改
     *
     * @param model
     * @return
     * @throws Exception
     */
    int updateAir(AirModel model) throws Exception;

    /**
     * 按条件查询
     */
    List<AirModel> findAirByCondition(Map<String, Object> map) throws Exception;

    /**
     * 根据编号查询对象的方法
     *
     * @param id
     * @return
     * @throws Exception
     */
    AirModel selectOneById(Integer id) throws Exception;

}
